<template>
    <div>
        Navbar
        
        <!-- $attrs将透传给button -->
        <button v-bind="$attrs">button</button>
    </div>
</template>

<script>
export default {
    inheritAttrs:false, //禁止透传
    data() {
        return {

        }
    }
}
</script>

<style>

</style>